package com.zhouxiaoge.命令模式;

/**
 * @author 周小哥 gqzmy@163.com 2023/2/27 14:23
 */

public class SellStock implements Order {

    private Stock stock;

    public SellStock(Stock stock) {
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.sell();
    }
}
